package com.spring.aop.dynproxy;

public class Test {

    public static void main(String[] args) {
       /* CarSeller carFactor = new CarFactor();
        JDKProxy jdkProxy = new JDKProxy(carFactor);
        CarSeller carSeller = (CarSeller) jdkProxy.getProxy();
        carSeller.sellCar();*/


        CarSeller carFactor = new CarFactor();
        JDKProxyFactory jdkProxy = new JDKProxyFactory(carFactor);
        CarSeller carSeller = (CarSeller) jdkProxy.getProxy();
        carSeller.sellCar();
    }
}
